/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: HouseBuilder
 * @author: xiayuanxing
 * @description: 抽象的建造者
 * @date: 2021/12/20 10:22
 * @version: 1.0
 */
public abstract class HouseBuilder {

    protected House house = new House();


    //将建造的流程写好，抽象的方法
    public abstract void buildBasic();
    public abstract void buildWalls();
    public abstract void roofed();

    //建造房子后，将产品返回
    public House buildHouse(){
        return house;
    }
}
